package com.zxy.ziems.server.foms.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class DeptInfoTree {

    private String id;

    private String alias;

    /**
     * 编号
     */
    private String orgCode;
    /**
     * 名称
     */
    private String name;

    private String parentId;

    /**
     *人员是否与该部门绑定，1是 ，0否
     */
    private Integer isBind;

    /**
     * 人员组织树是否选中 1是，0否
     */
    private Integer flag;

    private List<UserInfo> userInfos;

    private List<DeptInfoTree> childList = new ArrayList<>();

    /**
     * 人员总数
     */
    private Long total;

    public DeptInfoTree() {
    }

    public DeptInfoTree(Integer flag, String id, String orgCode, String name) {
        this.id = id;
        this.orgCode = orgCode;
        this.name = name;
        this.alias = alias;
        this.flag = flag;
    }

    public DeptInfoTree(String id, String orgCode, String name, Integer isBind) {
        this.id = id;
        this.orgCode = orgCode;
        this.name = name;
        this.alias = alias;
        this.isBind = isBind;
    }

    public DeptInfoTree(String id, String orgCode, String name, String alias, Integer flag) {
        this.id = id;
        this.orgCode = orgCode;
        this.name = name;
        this.alias = alias;
        this.flag = flag;
    }



    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

}
